package com.masterclient.app.businessmodule.homemodule.adapter;

import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.eoner.baselibrary.utils.GlideUtil;
import com.masterclient.app.R;
import com.masterclient.app.modules.income.model.MasterMienDataBean;

public class MasterMienAdapter extends BaseQuickAdapter<MasterMienDataBean.MastersItem, BaseViewHolder> {

    public MasterMienAdapter() {
        super(R.layout.master_mien_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, MasterMienDataBean.MastersItem item) {
        ImageView iv = helper.getView(R.id.iv_img);
        TextView tvName = helper.getView(R.id.tv_name);
        TextView tvTag = helper.getView(R.id.tv_tag);
        TextView tvDes = helper.getView(R.id.tv_des);

        tvName.setText(item.name);
        tvTag.setText(item.title);
        tvDes.setText(item.shortDesc);
        GlideUtil.displayRoundImage(mContext, item.image, iv, 4, R.mipmap.defaults);
    }
}
